package com.example.pingze.entity;

import lombok.Data;
import org.hibernate.validator.constraints.ISBN;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 评论
 */

@Entity
@Data
public class Comment {
    @Id
    private String id;
    @Column(name = "creation_id")
    private String creationId;
    //评论作者的昵称
    @Column(name = "nick_name")
    private String nickName;
    //评论内容
    private String content;
    //评论表的时间
    private String time;
    //评论点赞数
    private int likes;
    //评论的作者的账号
    private String account;
}
